﻿@model IEnumerable<DE_MVC_WyFy.Areas.Administrator.Models.ProductType>
@{
    ViewBag.Title = "Index";
    Layout = "~/Areas/Administrator/Views/Shared/Layout.cshtml";
}

<div class="content_all">
    <h2>Index</h2>

    <p>
        @Html.ActionLink("Create New", "Create")
    </p>
    <table>
        <tr>
            <th>ProductTypeName
            </th>
            <th>IsDeleted
            </th>
            <th>KeyWords
            </th>
            <th>IsMale
            </th>
            <th>Parent
            </th>
            <th>IDCategory
            </th>
            <th></th>
        </tr>

        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.ProductTypeName)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.IsDeleted)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.KeyWords)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.IsMale)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Parent)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.IDCategory)
                </td>
                <td>
                    @Html.ActionLink("Edit", "Edit", new { id = item.ProductTypeID }) |
            @Html.ActionLink("Details", "Detail", new { id = item.ProductTypeID }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.ProductTypeID })
                </td>
            </tr>
        }

    </table>
</div>
